package com.goktech.olala.server.dao.goods;

import com.goktech.olala.server.pojo.goods.Advert;

import java.util.List;

/**
 * @author sanming
 * @Classname AdvertMapper
 * @Description 这个类和前面五个方法为逆向工程生成
 * @Date 2020/12/7 18:48
 * @Created by sanming
 */
public interface AdvertMapper {

    /**
     * 根据adverId删除轮播图
     *
     * @param adverId
     * @return
     */
    int deleteByPrimaryKey(Integer adverId);

    /**
     * 添加轮播图
     *
     * @param record
     * @return
     */
    int insert(Advert record);

    /**
     * 根据adverId查询
     *
     * @param adverId
     * @return
     */
    Advert selectByPrimaryKey(Integer adverId);

    /**
     * 查询所有轮播图
     *
     * @return
     */
    List<Advert> selectAll();

    /**
     * 更新
     *
     * @param record
     * @return
     */
    int updateByPrimaryKey(Advert record);
}